package com.zb.zeus.gateway;

import com.zb.zeus.common.gateway.autoconfig.EnableDubboRouting;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 网关启动程序
 *
 * @author zb.zeus
 */
// @EnableDubboRouting
//@EnableZBFeignClients
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class ZeusGatewayApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(ZeusGatewayApplication.class, args);
        System.out.println(context.getEnvironment().resolvePlaceholders("${spring.cloud.gateway.discovery.locator.enabled}"));
        System.out.println("(♥◠‿◠)ﾉﾞ  石头科技网关启动成功   ლ(´ڡ`ლ)ﾞ  \n");
    }
}
